#include<stdio.h>
int main()
{
	int a = 700;
	int ge = a % 10;
	int shi = a / 10 % 10;
	int bai = a / 100 % 10;
	int number = ge * 100 + shi * 10 + bai;
	printf("%d", number);
	return 0;
}